<script>
export default {
  name:"Staging",
  created() {
    this.routeList = this.$store.getters.router
  },
  data(){
    return {
      routeList:[]
    }
  },
  methods:{
    next(item){
      this.$router.push( item.path )
    }
  }
}
</script>

<template>
  <div>
    <p>工作台</p>
    <van-grid :gutter="10">
      <van-grid-item v-for="item in routeList" :key="item.path" icon="photo-o" :text="item.meta.label" @click="next(item)" style="text-align: center"/>
    </van-grid>
  </div>
</template>

<style scoped lang="scss">
p{
  font-weight: 600;margin-left: 4px
}

</style>
